package com.ydkfjs.exception;

/**
 * 自定义异常
 * @Author: hb
 * @CreateTime: 2023-12-25 06:20
 * @Version: 1.0
 */
public class BusinessException extends RuntimeException {

    private final int code;

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

}
